<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
<!--
    <ui:composition template="/template2.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateAccountTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
  -->          
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateAccountLabel_email}" for="email" />
                    <h:inputText id="email" value="#{accountController.selected.email}" title="#{bundle.CreateAccountTitle_email}" required="true" requiredMessage="#{bundle.CreateAccountRequiredMessage_email}"/>
                    <h:outputLabel value="#{bundle.CreateAccountLabel_password}" for="password" />
                    <h:inputSecret id="password" value="#{accountController.selected.password}" required="true" requiredMessage="#{bundle.CreateAccountTitle_password}" />
                  <h:outputLabel value="#{bundle.CreateAccountLabel_password}" for="password" />
                    <h:inputSecret id="password" value="#{accountController.selected.password}" required="true" requiredMessage="#{bundle.CreateAccountTitle_password}" />
                    <!--
                    <h:outputLabel value="#{bundle.CreateAccountLabel_isActive}" for="isActive" />
     
                   <p:selectBooleanButton id="isActive" value="#{accountController.selected.isActive}" onLabel="Is Active" offLabel="Not Active" onIcon="ui-icon-check" offIcon="ui-icon-close"/>
                  
                    <h:outputLabel value="#{bundle.CreateAccountLabel_activeCode}" for="activeCode" />
                    <h:inputText id="activeCode" value="#{accountController.selected.activeCode}" title="#{bundle.CreateAccountTitle_activeCode}" />
                    <h:outputLabel value="#{bundle.CreateAccountLabel_roleID}" for="roleID" />
                    
                    <p:selectOneMenu value="#{accountController.selected.roleID}" converter="acc"   effect="fade" var="p" >  
            <f:selectItem itemLabel="Select One" itemValue="" />  
            <f:selectItems value="#{roleController.items}" var="role" itemLabel="#{role.name}" itemValue="#{acc}"/>    
             -->
        </p:selectOneMenu> 
                    <!--
                    <h:selectOneMenu id="roleID" value="#{accountController.selected.roleID}" title="#{bundle.CreateAccountTitle_roleID}" >
                        <f:selectItems value="#{roleController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    
                    <h:outputLabel value="#{bundle.CreateAccountLabel_perID}" for="perID" />
                    <h:selectOneMenu id="perID" value="#{accountController.selected.perID}" title="#{bundle.CreateAccountTitle_perID}" >
                        <f:selectItems value="#{personController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    -->
                </h:panelGrid>
                <br />
                <h:commandLink action="#{accountController.create}" value="#{bundle.CreateAccountSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{accountController.prepareList}" value="#{bundle.CreateAccountShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateAccountIndexLink}" action="/index" immediate="true" />
            </h:form>
            <!--
        </ui:define>
    </ui:composition>
-->
</html>
